-
-
Couldn't load subscription status.
- Fork 277
PR: Add default shape argument to colour.quality.cfi2017.sd_reference_illuminant definition.
#1320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is useful!
I left two small comments.
| def test_default_args(self) -> None: | ||
| """Test :func:`color.quality.CIE2017.sd_reference_illuminant` for | ||
| default shape argument. | ||
| """ | ||
|
|
||
| sd = sd_reference_illuminant(5421) | ||
| assert sd.shape == SPECTRAL_SHAPE_DEFAULT | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor
It is fine to have this test in the test_sd_reference_illuminant method. We are not doing "true" unit tests.
| "SPECTRAL_SHAPE_CIE2017", | ||
| "ROOT_RESOURCES_CIE2017", | ||
| "DataColorimetry_TCS_CIE2017", | ||
| "SPECTRAL_SHAPE_CIE2017", | ||
| "CCT_reference_illuminant", | ||
| "ColourRendering_Specification_CIE2017", | ||
| "DataColorimetry_TCS_CIE2017", | ||
| "colour_fidelity_index_CIE2017", | ||
| "delta_E_to_R_f", | ||
| "load_TCS_CIE2017", | ||
| "CCT_reference_illuminant", | ||
| "sd_reference_illuminant", | ||
| "tcs_colorimetry_data", | ||
| "delta_E_to_R_f", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question
Why addition/removal/order change of the objects?
sd_reference_illuminantshape argument to colour.quality.cfi2017.sd_reference_illuminant definition.
I frequently use this function elsewhere, and having a default shape is convenient. :)